package com.myfb.antstorm.service.ribbon.service.impl;

import com.myfb.antstorm.service.ribbon.service.IHelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * Created by Administrator on 2018/4/26.
 */
@Service
public class HelloServiceImpl implements IHelloService{
    @Autowired
    RestTemplate restTemplate;

    @Override
    public String hello() {
        return restTemplate.getForObject("http://service-demo/hello",String.class);
    }
}
